package io.homework;

import java.io.FileOutputStream;
import java.nio.charset.StandardCharsets;

public class Test5 {
    public static void main(String[] args) throws Exception {
        FileOutputStream fos = new FileOutputStream("test1.txt");

        String s = "java No.1";

        fos.write(s.getBytes(StandardCharsets.UTF_8));
        System.out.println("写入完成");
        fos.close();
    }
}
